<!--
  @author heguanghua
  @since 2020/04/16 14:50
-->
<!DOCTYPE html SYSTEM "http://www.thymeleaf.org/dtd/xhtml1-strict-thymeleaf-4.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">
<head th:include="common/common::jscss"/>
<body>

<div class="layui-fluid"
     th:with="hasAddEdit=${#authPermit.checkPermit('/module/modify/addEdit.action')},
     hasModifyStatus=${#authPermit.checkPermit('/module/modify/modifyStatus.action')}">

    <blockquote class="layui-crumb">
        <a th:lay-href="|${SYS_MCC}/module/tree.action|">模块管理</a>
        <th:block th:if="${sys.sysId != null}">&nbsp;>&nbsp;</th:block>
        <a th:lay-href="|${SYS_MCC}/sys/detail.action?sysId=${sys.sysId}|" lay-text="系统信息" th:text="${sys.sysName}" th:if="${sys.sysId != null}">sysName</a>
    </blockquote>

    <div class="layui-card">

        <div class="layui-card-body">

            <div class="layui-btn-container">
                <div class="layui-btn-group" th:if="${hasModifyStatus}">
                    <button class="layui-btn layui-btn-sm" onclick="setStatus(2);">启用</button>
                    <button class="layui-btn layui-btn-sm" onclick="setStatus(1);">停用</button>
                </div>
<!--                <div class="layui-btn-group">-->
<!--                    <a lay-href="/module/list.action" class="layui-btn layui-btn-sm layui-btn-primary" lay-text="菜单管理">普通列表</a>-->
<!--                </div>-->
            </div>

            <table class="layui-hide" id="zmn-table" lay-filter="zmn-table"></table>

        </div>

    </div>

</div>
</body>
</html>

<script type="text/javascript" th:inline="javascript">

    var json = {
        sysId: [[${vo.sysId == null ? 0: vo.sysId}]],
        hasDetail: [[${#authPermit.checkPermit('/module/detail.action')}]],
        hasPermitList: [[${#authPermit.checkPermit('/permit/list.action')}]],
        hasAddEdit: [[${#authPermit.checkPermit('/module/modify/addEdit.action')}]],
        hasModifySort: [[${#authPermit.checkPermit('/module/modify/modifySort.action')}]]
    };

    layui.extend({
        module_tree: "module/zmn.module.tree"
    }).use(['index', 'module_tree']);

</script>
